<?php
/* 
    Project     : 48c6c450f1a4a0cc53d9585dc0fee742
    Created on  : Mar 16, 2013, 11:29:15 PM
    Author      : Truong Khuong - khuongxuantruong@gmail.com
    Description :
        Purpose of the stylesheet follows.
*/
class config_model extends backend_model {

    function __construct()
    {
        parent::__construct('system','');
    }
    function get_by_type($type=null){
        if($type!=null)$this->db->where('Type',$type);
        $query=$this->db
            ->get("system"); 
        return $query->result();
    }
    function _binding($type=null){
        
            $this->datatables_config=array(
                    "table"=>"system",
                    "order_by"=>"ORDER BY `Insert` DESC",
                    "columnmaps"=>array(
                            
                    )
            );
            if($type!=null)$this->datatables_config['where']="WHERE Type='$type'";
            return $this->_bindingdata();
    }
}
?>
